/*
 * @Author: your name
 * @Date: 2021-09-08 15:11:45
 * @LastEditTime: 2021-09-08 15:26:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \maidoubuy\components\tabs\tabs.js
 */
Component({
  data: {},
  properties: {
     tabs:{
       type:Array,
       value:[]
     }
  },
  methods: {
    handleItemTap(e){
      //获取点击时候传递过来的值;
      const {index} = e.currentTarget.dataset;
      //把得到的下标传递给父组件;
      this.triggerEvent('tabsItemChange',{index})
    }
  }
})